package com.example.common.entity;

import lombok.Data;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Table;
import java.io.Serializable;

@Data
@Entity
@Table(name = "shop_product_img")
public class ProductImg implements Serializable {

	private static final long serialVersionUID = 7175440353475914422L;
	@Id
	@Column(name = "id_bigint", columnDefinition = "bigint(20)")
	private Long id;
	@Column(name = "product_id_bigint", columnDefinition = "bigint(20)")
	private Long productId;
	@Column(name = "img_nvarchar", columnDefinition = "varchar(255)")
	private String img;
	@Column(name = "pos_int", columnDefinition = "int(11) comment '1：详情顶部,2：商品详情'")
	private Integer pos;
	@Column(name = "sort_int", columnDefinition = "int(11)")
	private Integer sort;
}
